package com.cropdoctor.model.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.net.ServerSocket;
import java.time.LocalDateTime;

@Data
@TableName("post_table")
@ApiModel(value = "PostPo",description = "论坛帖子相关Po")
public class PostPo {
    @TableId(type=IdType.AUTO)
    private long id;
    @ApiModelProperty(value = "发帖人id",required = true,example = "1")
    private long userId;
    @ApiModelProperty(value = "帖子标题",required = true,example = "求助,我的西瓜怎么了?")
    private String title;
    @ApiModelProperty(value = "帖子正文内容",required = true,example = "今天早上起来就看到西瓜变成这样了")
    private String text;
    @ApiModelProperty(value = "点赞数",required = true,example = "0")
    private int likeNumber;
    @ApiModelProperty(value = "创建时间",required = true,example = "2024:2:14:10:54:27")
    private LocalDateTime createDateTime;
    private String url;
}
